<?php


namespace App\Repositories;


use App\Exceptions\BasicException;
use App\Services\Tools\RedisService;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;

class UserDataRepository
{

    /**
     * 批量获取用户信息
     *
     * @param $userIds
     * @param $fields
     *
     * @return mixed
     */
    public function batchGetUserInfoByIds($userIds, $fields)
    {
        return app('model_user')->whereIn('id', $userIds)->select($fields)->get();
    }
}
